package com.bingfor.easycablelink.my;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import android.view.ViewGroup;

import com.bingfor.easycablelink.base.BaseFragment;
import com.bingfor.easycablelink.databinding.PageHomeBinding;
import com.bingfor.easycablelink.databinding.PageMyBinding;
import com.bingfor.easycablelink.my.viewModel.MyPageViewModel;

/**
 * Created by LY on 2017/5/17.
 */

public class MyPage extends BaseFragment {


    PageMyBinding binding ;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        binding = PageMyBinding.inflate(inflater, container, false);
        return binding.getRoot();
    }

    @Override
    public void onActivityCreated( Bundle savedInstanceState ){
        super.onActivityCreated(savedInstanceState);
        initViews();
    }


    @Override
    public void refresh() {

    }

    @Override
    public void initViews() {
        binding.setViewModel(new MyPageViewModel(mContext));

    }

    @Override
    public void initToolbar() {

    }

    public static MyPage getInstance() {
        return new MyPage();
    }
}
